package com.company.control;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "CommonServlet", value = "/jump")//映射一个路径jump
public class CommonServlet extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        //获取跳转用户添加信息的页面的路径参数
        String strUI = request.getParameter("pg");
        request.getRequestDispatcher(strUI).forward(request,response);

    }
}
